﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Rebar;

namespace BankSimulation
{
    internal class BankData
    {
        public Bank bankA;
        public Bank bankB;
        public BankData()
        {
            // 初始化银行数据
            bankA = new Bank("Bank A");
            bankB = new Bank("Bank B");

            // 创建账号
            Account account1 = new Account(1, "A", 10000);
            Account account2 = new Account(2, "B", 20000);
            CreditAccount creditAccount1 = new CreditAccount(3, "C", 30000, 50000); // 5000为信用额度
            CreditAccount creditAccount2 = new CreditAccount(4, "D", 40000, 60000); // 5000为信用额度

            bankA.AddAccount(account1);
            bankA.AddAccount(creditAccount1);
            bankB.AddAccount(account2);
            bankB.AddAccount(creditAccount2);

        }
    }
}
